package me.send.produce.client.controller;

import me.send.business.base.ErrorEntity;
import me.send.business.service.pojo.Feedback;
import me.send.business.service.service.FeedbackService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value="feedback",method=RequestMethod.POST)
public class FeedbackController {

	@Autowired
	private FeedbackService feedbackService;
	
	@RequestMapping("save")
	@ResponseBody
	public ErrorEntity save(Feedback feedback,String devicenumber){
		return feedbackService.save(feedback, devicenumber);
	}
	
	
}